const path = require('path');
const H = require('html-webpack-plugin')
module.exports = {
  entry: path.resolve(__dirname, '../src/core'),
  output: {
    path: path.resolve(__dirname, '../dist'),
    filename: "[name].[hash:6].[ext]"
  },
  mode: "development",
  module: {
    rules: [{
      test: /ts?x$/,
      loader: 'ts-loader'
    }]
  },
  plugins: [
    new H({
      template: path.resolve(__dirname, '../src/core/index.html')
    })
  ]
}
